package ua.bocha.annotation.validation.impl;

import java.math.BigDecimal;
import java.util.Date;

/**
 * Date: 09.08.12
 *
 * @author bocha
 */
public class Product implements IProduct {

    private Integer id2;
    private String name;
    private BigDecimal price;
    private Date datePrice;

    @Override
    public void setId2(Integer id2) {
        this.id2 = id2;
    }

    @Override
    public Integer getId2() {
        return id2;
    }

    @Override
    public void setName(String name) {
        this.name = name;
    }

    @Override
    public String getName() {
        return name;
    }

    @Override
    public void setPrice(BigDecimal price) {
        this.price = price;
    }

    @Override
    public BigDecimal getPrice() {
        return price;
    }

    @Override
    public void setDatePrice(Date datePrice) {
        this.datePrice = datePrice;
    }

    @Override
    public Date getDatePrice() {
        return datePrice;
    }

    @Override
    public String toString() {
        return "Product{" +
                "id2=" + id2 +
                ", name='" + name + '\'' +
                ", price=" + price +
                ", datePrice=" + datePrice +
                '}';
    }
}
